while (command->name != NULL)
{
- g_string_append_printf (summary, "\n %-24s", command->name);
- if (command->description != NULL)
- g_string_append_printf (summary, "%s", command->description);
+ if ((command->flags & OSTREE_BUILTIN_FLAG_HIDDEN) == 0)
+ {
+ g_string_append_printf (summary, "\n %-24s", command->name);
+ if (command->description != NULL)
+ g_string_append_printf (summary, "%s", command->description);
+ }
command++;
}
{ "init-fs", OSTREE_BUILTIN_FLAG_NO_REPO,
ot_admin_builtin_init_fs,
"Initialize a root filesystem" },
- { "instutil", OSTREE_BUILTIN_FLAG_NO_REPO,
+ { "instutil", OSTREE_BUILTIN_FLAG_NO_REPO | OSTREE_BUILTIN_FLAG_HIDDEN,
ot_admin_builtin_instutil,
- "Provide instutil commands, allow admin to change boot configuration and relabel selinux " },
+ "Deprecated commands intended for installer programs" },
{ "os-init", OSTREE_BUILTIN_FLAG_NO_REPO,
ot_admin_builtin_os_init,
"Initialize empty state for given operating system" },
while (command->name != NULL)
{
- g_string_append_printf (summary, "\n %-19s", command->name);
- if (command->description != NULL)
- g_string_append_printf (summary, "%s", command->description);
+ if ((command->flags & OSTREE_BUILTIN_FLAG_HIDDEN) == 0)
+ {
+ g_string_append_printf (summary, "\n %-19s", command->name);
+ if (command->description != NULL)
+ g_string_append_printf (summary, "%s", command->description);
+ }
command++;
}
while (subcommand->name != NULL)
{
- g_string_append_printf (summary, "\n %-18s", subcommand->name);
- if (subcommand->description != NULL)
- g_string_append_printf (summary, "%s", subcommand->description);
-
+ if ((subcommand->flags & OSTREE_BUILTIN_FLAG_HIDDEN) == 0)
+ {
+ g_string_append_printf (summary, "\n %-18s", subcommand->name);
+ if (subcommand->description != NULL)
+ g_string_append_printf (summary, "%s", subcommand->description);
+ }
subcommand++;
}
while (command->name)
{
- print_func (" %-17s%s\n", command->name, command->description ?: "");
+ if ((command->flags & OSTREE_BUILTIN_FLAG_HIDDEN) == 0)
+ print_func (" %-17s%s\n", command->name, command->description ?: "");
command++;
}
while (commands->name != NULL)
{
- g_string_append_printf (summary, "\n %-18s", commands->name);
+ if ((commands->flags & OSTREE_BUILTIN_FLAG_HIDDEN) == 0)
+ {
+ g_string_append_printf (summary, "\n %-18s", commands->name);
- if (commands->description != NULL )
- g_string_append_printf (summary, "%s", commands->description);
+ if (commands->description != NULL )
+ g_string_append_printf (summary, "%s", commands->description);
+ }
commands++;
}
typedef enum {
OSTREE_BUILTIN_FLAG_NONE = 0,
OSTREE_BUILTIN_FLAG_NO_REPO = 1 << 0,
- OSTREE_BUILTIN_FLAG_NO_CHECK = 1 << 1
+ OSTREE_BUILTIN_FLAG_NO_CHECK = 1 << 1,
+ OSTREE_BUILTIN_FLAG_HIDDEN = 1 << 2,
} OstreeBuiltinFlags;
typedef enum {